﻿namespace Acl.Messages;

/// <summary>
/// 分布式通知处理器
/// </summary>
public interface IDistributionNotificationHandler<TData> : IDistributionMessageHandlerBase
{
    /// <summary>
    /// 
    /// </summary>
    /// <param name="msg"></param>
    /// <param name="cancellationToken"></param>
    /// <returns></returns>
    Task Handle(IDistributionMessage<TData> msg, CancellationToken? cancellationToken = default);
}
